package com.ruoyi.imweb;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 未继承framework,导致跨域。
 * SecurityAutoConfiguration和UserDetailsServiceAutoConfiguration排除后就可以不用在SecurityConfig设置排除的url
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class})
@Slf4j
@EnableAsync
@ComponentScan(
        basePackages = {"com.ruoyi.**"}, // 默认扫描启动类所在包及其子包
        excludeFilters = {/* 一些排除过滤器 */}
)
public class ImWebApplication {
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(ImWebApplication.class, args);
        log.info("(♥◠‿◠)ﾉﾞ  imWeb启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " .-------.       ____     __        \n" +
                " |  _ _   \\      \\   \\   /  /    \n" +
                " | ( ' )  |       \\  _. /  '       \n" +
                " |(_ o _) /        _( )_ .'         \n" +
                " | (_,_).' __  ___(_ o _)'          \n" +
                " |  |\\ \\  |  ||   |(_,_)'         \n" +
                " |  | \\ `'   /|   `-'  /           \n" +
                " |  |  \\    /  \\      /           \n" +
                " ''-'   `'-'    `-..-'              ");
    }
}
